]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Add bottom drag gesture to popup the message tray
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 25 Jun 2014 15:50:02 +0000 (17:50 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 30 Aug 2014 12:01:44 +0000 (14:01 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=735625

js/ui/messageTray.js

index beabb8a7144b21a427972538c5df5d68c2cc8828..62c77e4b9f4795d7ef8b6d96ccb73d9fc59c8dd0 100644 (file)
@@ -15,6 +15,7 @@ const Signals = imports.signals;
 const St = imports.gi.St;
 const Tp = imports.gi.TelepathyGLib;
 
+const EdgeDragAction = imports.ui.edgeDragAction;
 const BoxPointer = imports.ui.boxpointer;
 const CtrlAltTab = imports.ui.ctrlAltTab;
 const GnomeSession = imports.misc.gnomeSession;
@@ -1933,6 +1934,10 @@ const MessageTray = new Lang.Class({
 
         this._messageTrayMenuButton = new MessageTrayMenuButton(this);
         this.actor.add_actor(this._messageTrayMenuButton.actor);
+
+        let gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM);
+        gesture.connect('activated', Lang.bind(this, this.toggle));
+        global.stage.add_action(gesture);
     },
 
     close: function() {